﻿using System.Xml;
using System.Xml.Serialization;

namespace Bpmn.Xml;

/// <remarks/>
[Serializable]
[XmlType(Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", TypeName = "tRelationship")]
[XmlRoot("relationship", Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", IsNullable = false)]
public partial class Relationship : BaseElement
{
    /// <remarks/>
    [XmlElement("source")]
    public XmlQualifiedName[] Source { get; set; } = default!;

    /// <remarks/>
    [XmlElement("target")]
    public XmlQualifiedName[] Target { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("type")]
    public string Type { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("direction")]
    public RelationshipDirection Direction { get; set; } = default!;

    /// <remarks/>
    [XmlIgnore]
    public bool DirectionSpecified { get; set; } = default!;
}
